<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/view/include/taglib.jsp"%>
<html lang="cn" class="app">
<head>
    <meta charset="utf-8" />
    <title>RCode | 睿代码管理平台 | 字典管理</title>
    <meta name="description" content="app, web app, responsive, admin dashboard, admin, flat, flat ui, ui kit, off screen nav" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <link rel="icon" type="image/png" href="icon.png">
    <link rel="apple-touch-icon-precomposed" href="icon.png">
    <link rel="stylesheet" href="${ctxStatic}/js/jPlayer/jplayer.flat.css" type="text/css" />
    <link rel="stylesheet" href="${ctxStatic}/css/bootstrap.css" type="text/css" />
    <link rel="stylesheet" href="${ctxStatic}/css/animate.css" type="text/css" />
    <link rel="stylesheet" href="${ctxStatic}/css/font-awesome.min.css" type="text/css" />
    <link rel="stylesheet" href="${ctxStatic}/css/simple-line-icons.css" type="text/css" />
    <link rel="stylesheet" href="${ctxStatic}/css/font.css" type="text/css" />
    <link rel="stylesheet" href="${ctxStatic}/css/app.css" type="text/css" />
    <%--<link rel="stylesheet" href="${ctxStatic}/js/page/paging.css" type="text/css" />--%>
    <!--[if lt IE 9]>
    <script src="${ctxStatic}/js/ie/html5shiv.js"></script>
    <script src="${ctxStatic}/js/ie/respond.min.js"></script>
    <script src="${ctxStatic}/js/ie/excanvas.js"></script>
    <![endif]-->
</head>
<body>
<section class="scrollable wrapper">
    <div class="row">
        <div class="col-lg-12">
            <!-- 引导开始 -->
            <ul class="breadcrumb">
                <li><a href="${ctx}/welcome"><i class="fa fa-home"></i> 主页</a></li>
                <li>系统设置</li>
                <li class="active">字典管理</li>
                <li class="active">字典查看</li>
            </ul>
            <!-- 引导结束 -->
        </div>
    </div>
    <form class="bs-example form-horizontal" method="post" action="${ctx}/sys/user/create" >
        <section class="panel panel-default">
            <%--字典基本信息--%>
            <section class="panel panel-default">
                <header class="panel-heading font-bold">用户详情</header>
                <div class="panel-body">
                    <div class="form-group">
                        <label class="col-lg-2 control-label">姓名：</label>
                        <div class="col-lg-10">
                            <input type="hidden" name="id" value="${user.id}"/>
                            <input type="text" name="name" class="form-control" value="${user.name}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-2 control-label">用户名：</label>
                        <div class="col-lg-10">
                            <input type="text" name="username" class="form-control" value="${user.username}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-2 control-label">用户编号(身份证)：</label>
                        <div class="col-lg-10">
                            <input type="text" name="no" class="form-control" value="${user.no}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-2 control-label">机构编号：</label>
                        <div class="col-lg-10">
                            <input type="text" name="organizationId" class="form-control" value="${user.organizationId}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-2 control-label">授权管理机构：</label>
                        <div class="col-lg-10">
                            <input type="text" name="manageOrgIdsStr" class="form-control" value="${user.manageOrgIdsStr}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-2 control-label">邮箱：</label>
                        <div class="col-lg-10">
                            <input type="text" name="email" class="form-control" value="${user.email}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-2 control-label">电话：</label>
                        <div class="col-lg-10">
                            <input type="text" name="phone" class="form-control" value="${user.phone}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-2 control-label">岗位：</label>
                        <div class="col-lg-10">
                            <input type="text" name="stationNm" class="form-control" value="${user.stationNm}">
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-10">
                            <button type="submit" class="btn btn-s-md btn-info">保存</button>
                            <button type="button" class="btn btn-s-md btn-danger" onclick="closeModel(false)">关闭</button>
                        </div>
                    </div>
                </div>
            </section>
            <%--操作区域 结束--%>
        </section>
    </form>
</section>

</body>
<script src="${ctxStatic}/js/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="${ctxStatic}/js/bootstrap.js"></script>
<!-- App -->
<script src="${ctxStatic}/js/app.js"></script>
<script src="${ctxStatic}/js/slimscroll/jquery.slimscroll.min.js"></script>
<script src="${ctxStatic}/js/app.plugin.js"></script>
<script type="text/javascript" src="${ctxStatic}/js/jPlayer/jquery.jplayer.min.js"></script>
<script type="text/javascript" src="${ctxStatic}/js/jPlayer/add-on/jplayer.playlist.min.js"></script>
<script type="text/javascript" src="${ctxStatic}/js/jPlayer/demo.js"></script>
<script type="text/javascript" src="${ctxStatic}/js/tools.js"></script>
<script type="text/javascript" src="${ctxStatic}/js/page/paging.js"></script>
<script type="text/javascript" src="${ctxStatic}/js/layer/layer.js"></script>
<script type="text/javascript" src="${ctxStatic}/js/tmpl/jquery.tmpl.js"></script>

<script>
    $(function(){
        var msg = '${msg}';
        if(msg!=''){
            showMsg(msg);
            closeModel(true);//关闭窗口
        }
    })

    var sortIndex = $("#contentTable tbody tr").size();

    <%--&lt;%&ndash;//删除&ndash;%&gt;--%>
    <%--function deleteItem(id){--%>
    <%--layer.confirm('确认删除该数据？', {--%>
    <%--btn: ['是','否'],--%>
    <%--skin: 'layui-layer-molv'--%>
    <%--}, function(){--%>
    <%--$.ajax({--%>
    <%--type: 'post',--%>
    <%--url: '${ctx}/sys/dict/deleteItem.json',--%>
    <%--dataType:"json",--%>
    <%--data: {"id":id},--%>
    <%--success: function (data) {--%>
    <%--if(data.ret==1){--%>
    <%--layer.msg('删除成功');--%>
    <%--}else{--%>
    <%--layer.msg('删除失败：'+data.msg);--%>
    <%--}--%>
    <%--searchPage(1);--%>
    <%--}--%>
    <%--});--%>
    <%--}, function(){--%>

    <%--});--%>
    <%--}--%>

</script>
</html>
